<?	
	//Define the modes
	define("CMS_GROUP_ADMIN", 1);
	define("CMS_GROUP_INTRANET", 5);
	define("CMS_GROUP_SITE", 4);
	define("CMS_GROUP_MAILOUT", 6);
	
	//the main cms page
	define("CMS_HOME","/cms/html/index.php");
	
	//how many items to show in  search results.. lists on apage
	if (!defined("CMS_PAGE_LENGTH"))
		define("CMS_PAGE_LENGTH", 30);
	
	if (!defined("PATH_CONVERT"))
		define("PATH_CONVERT", '/usr/local/bin/convert');

	if (!defined("PATH_COMPOSITE"))
		define("PATH_COMPOSITE", '/usr/local/bin/composite');

	
	//define("PATH_CONVERT","/usr/X11R6/bin/convert"); //path for iserve
	
	define("CMS_KEYWORD_SEARCH_PAGE_LENGTH", 20);
	
	//where to get the search engine noise word list from
	define("CMS_SEARCH_NOISEWORDS", CMS_HOME_DIR . "/lib/noisewords.txt");
	
	//path to ffmpeg
	define("FFMPEG_PATH", "/usr/local/bin/");
		
	//the form mailer from address
	
	//tags that will not make it into the cms
	$CMS_DISALLOW_TAGS = array();
	
	//the files that appear at the side and bottom of the cms
	/// are these needed??
	define("CMS_SIDE_BAR","sidebar.php");
	define("CMS_BOTTOM_BAR","cmsFooter.php");
	
	//defines the default handling of line feeds in the magic clean function
	define("CMS_MAGICCLEAN_LINEFEED_MUNGE", true);
	define("CMS_PRINTWEB_LINEFEED_MUNGE", true);
	
	//the title for the site
	define("TITLE","Originate");
	
	//sets the permission checking in cmsDocument.
	//define("CMS_ENABLE_USER_PERMISSIONS", false);
	//define("CMS_WRITER_ENABLE_TRANSACTIONS", false );
	
	
	//Protected Groups (actually modes)
    //Groups not to be messed with as they are for the modeaccess.
    //group id = 1 Admin
    //group id = 4 Site
    //group id = 5 Intranet
    
/*
  	default modes..
  	  
+-----+-----------+----------+----------+------------+
| gid | groupname | modemask | modecode | enablemode |
+-----+-----------+----------+----------+------------+
|   1 | Admin     |        4 | admin    |          1 |
|   6 | Mailout   |        8 | mailout  |          1 |
|   4 | Site      |        2 | cms      |          1 |
|   5 | Intranet  |        1 | intranet |          1 |
+-----+-----------+----------+----------+------------+

*/
    define("CMS_INTRANET_MODE", 1);
    define("CMS_SITE_MODE", 2);
    define("CMS_ADMIN_MODE", 4);
    define("CMS_MAILOUT_MODE", 8);
    
    
    //check that these are in fact working and being adhered to 
    $CMS_PROTECTED_GROUPS = array(1, 6, 4, 5);
    
    //If a user is part of the group they get to access that mode.
    
    //some users need to be protected as well so that they don't get messed up.
    //Andrew, John, Antony, Becs and Lola (root and superuser incase we need them)
    $CMS_PROTECTED_USERS = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
    
    // enables the caching of data coming out of the blob store..
    //define("CMS_BINARY_CACHE_PATH", CMS_HOME_DIR . "/blobcache");	
    if(!defined("CMS_BINARY_CACHE_PATH"))
    	define("CMS_BINARY_CACHE_PATH", CMS_SITE_HOME . "/site/blobcache");
	
	if(!defined("CMS_BINARY_CACHE_ENABLE"))
		define("CMS_BINARY_CACHE_ENABLE", true);

        //define("CMS_KVC_UPLOAD_TEMP_IMAGES", CMS_HOME_DIR . "/uploadstore");//this should really be a persession type thign.. that gets nuked


	define("CMS_KVC_UPLOAD_TEMP_IMAGES", CMS_SITE_HOME . "/site/uploadstore");//this should really be a persession type thign.. that gets nuked
	
	//enables email notification of posts
	define("CMS_POSTINGS_EMAIL_NOTIFY", true);
	define("CMS_BATCH_POSTING_LIMIT", 10);
	
	define("MAIL_CONTACT_FORM", 227);
	
	//define("SMS_LIST_USER_FORM", 229);
	
	define("MAIL_LIST_FORM", 181);
	define("MAIL_LIST_USER_FORM", 185);
	
	//define("SMS_LIST_FORM", 228);
	
	
    //Custom built browse content pages listed in array with their respective documenttypes
    //$CMS_CUSTOM_REPORTS = array("formid"=>"include/Path");
    $CMS_CUSTOM_REPORTS = array(
    	123 => 'postings/browsePostings.php',	// one for postings..
    	124 => 'postings/browseTopics.php',		// postings topic
    	150 => 'files/browseFolders.php',		// one for folders..
    	147 => 'files/browseFiles.php',			// folders
    	130 => 'files/browseImages.php',		// images
    	157 => 'files/browseImageFolders.php',	// image folders
    	132 => 'Intranet/cmsBrowseLinks.php',// bookmarks
    	133 => 'Intranet/cmsBrowseBookmarkFolders.php',
    	135 => 'Intranet/cmsBrowseOrganisations.php',// orgs
    	136 => 'Intranet/cmsBrowsePeople.php',// people
    	158 => 'Intranet/cmsBrowseIntranetPages.php',//intranet free flow pages
    	160 => 'Intranet/cmsBrowseIntranetPageFolders.php',//intranet page folders
    	167 => 'shop/cmsBrowseOrders.php',
    	168 => 'shop/cmsBrowseOrderItems.php',
    	172 => 'Mailout/browseMailout.php',
		MAIL_LIST_FORM => 'Mailout/browseLists.php', //Mailing Lists
		MAIL_LIST_USER_FORM => 'Mailout/browseUsers.php', //Mailing List Users
		//SMS_LIST_FORM =>'SMS/browseSMSLists.php', //SMS Lists
		187 => 'PageBuilder/browsePageBuilder.php',
		222 => 'Site/cmsBrowseMasterProductContent.php',		
		//223 => 'Site/cmsBrowseProductContent.php',
		227 => 'Mailout/browseMailerContacts.php',
		
		220 => 'files/cmsBrowseFilesModule.php',
		
    	000 => 000 // remove me !!!
    );
    
    $CMS_CUSTOM_ADD_PAGES = array( );
    
    foreach ($IMAGES_MODULES as $val) {
	    $CMS_CUSTOM_REPORTS[$val] = "files/cmsBrowseFilesModule.php";
    }
    foreach ($FILES_MODULES as $val) {
	    $CMS_CUSTOM_REPORTS[$val] = "files/cmsBrowseFilesModule.php";
    }

    //Custom menu items - array where key is the link name, and value is the link
    $MENU_MODULES_ITEMS = array();
    $MENU_CODETABLES_ITEMS = array();
    


    // custom add/edit pages for the side bar.    
    // $CMS_CUSTOM_SIDEBAR_LINKS = array( //"123" => "postings/postingIndex.php"
    // );

    //Non standard default sorts for cmsBrowseContent pages
    //$CMS_DEFAULT_REPORT_SORTS = array("formid"=>array("sort", "direction"));
    
    $CMS_DEFAULT_REPORT_SORTS = array(
    	135 => array('<<UPPER(c.title)>>', 'ASC'),
    	132 => array('<<UPPER(c.title)>>', 'ASC'),
    	136 => array('<<UPPER(c.shortdescription)>>,<<UPPER(c.title)>>', 'ASC'),
		//223 => array('<<UPPER(c.categorycode)>>,<<UPPER(c.title)>>', 'ASC'),
    	000 => 000//remove me !!!
    );
    
    //$CMS_CUSTOM_PAGENATION_EXTRA_VARIABLES = array("formid"=>array("variableA","variableB"))
    $CMS_CUSTOM_PAGENATION_EXTRA_VARIABLES = array(
		220 => array('parent'),
		000 => 000
    );    
    
   
    //error evil
	error_reporting(E_ALL);
